#include<stdio.h>
int main()
{
    int n = 0;
    scanf("%d\n", &n);
    int arr[1001] = { 0 };
    int a = 0;
    for (int i = 0; i < n; i++)
    {
        scanf("%d", &a);
        arr[a] = a;
    }
    for (int i = 0; i <= 500; i++)
    {
        if (arr[i] != 0)
            printf("%d\n", arr[i]);
    }
    return 0;
}